<%@ page import="mybatis.dao.Mybatis" %>
<%@ page import="mybatis.yang.Book" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/29
  Time: 11:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
        <%
            String name=request.getParameter("name");
            System.out.println(name);
            Mybatis mybatis=new Mybatis();
            Book book=mybatis.selectBook2(name);
        %>
        <center>
        <h3><%=book.getProduct_name()%></h3>
        <img src="\images\<%=book.getProduct_picture()%>" width="200px" height="200px"/><br>
        <a href="Carsuccess.jsp?name=<%=book.getProduct_name()%>">加入购物车</a>
        </center>

<input>
</body>
</html>
